<template>
	<view class="swiper-item">
		<view class="floor">
			<view :class="floor==1?'on':'off'" @click="floor=1">一层</view>
			<view :class="floor==1?'off':'on'" @click="floor=2">二层</view>
		</view>
		<view class="pic">
			<img class="image" src="http://demo.cyyyds.cn/uploads/20250114/floor1.png" v-if="floor==1"></img>
			<img class="image" src="http://demo.cyyyds.cn/uploads/20250114/floor2.png" v-else></img>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				floor: 1
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.swiper-item {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	.floor{
		width: 60%;
		display: flex;
		justify-content: space-between;
		.on{
			width: 50%;
			text-align: center;
			margin-top:30upx;
			padding:3%;
			color: #721b28;
			border-bottom: solid 2px #721b28;
		}
		.off{
			width: 50%;
			text-align: center;
			margin-top:30upx;
			padding:3%;
			color: #999;
			border-bottom: solid 2px #f5f4ee;
		}
	}
	.pic{
		.image {
			width: 100%;
			height: auto;
		}
		padding: 5%;
	}
}
</style>
